void TestVector3() {
	vector<int> v{ 1,2,3,4,5 };

	vector<int>::iterator t1 = v.begin();//1
	vector<int>::iterator t2 = v.begin() + 1;//2
	vector<int>::iterator t3 = v.begin() + 2;//3
	vector<int>::iterator t4 = v.begin() + 3;//4
	vector<int>::iterator t5 = v.begin() + 3;//5

//	v.erase(t2); t2及t2以后均失效

	t2 = v.erase(t2);
	cout << *t1 << endl;
	cout << *t2 << endl;
	cout << *(t2 + 1) << endl;
	//cout << *t3 << endl;
}
